public class test {
    public static void main(String[] args) {
        animal animal=new cat();
        animal.eat();
        animal.cry();
        System.out.println("----------------");
        animal=new dog();
        animal.cry();
        animal.eat();

    }
}